package me.a01mymap;

import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;

public class A04_MapDemo4 {
    public static void main(String[] args) {
        //Map集合第三种遍历方式，lambda表达式
        Map<String, String> m = new HashMap<>();

        m.put("标枪选手", "马超");
        m.put("人物挂件", "明世隐");
        m.put("御龙骑士", "尹志平");

        m.forEach((key,  value)-> {System.out.println(key + " = " + value);});

    }
}
